package howl.types;



import java.util.ArrayList;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import compiler.HowlType;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Entry{
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private Date timestamp;
	
	@Persistent
	private Long ParentID;
	
	@Persistent
	private String SensorName;
	
	public Entry(TableDescriptor td,String sn) {
		super();
		this.timestamp = new Date();
		ParentID = td.getId();
		this.SensorName = sn;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public Long getParentID() {
		return ParentID;
	}

	public void setParentID(Long parentID) {
		ParentID = parentID;
	}

	public String getSensorName() {
		return SensorName;
	}

	public void setSensorName(String sensorName) {
		SensorName = sensorName;
	}

}
